#include "mainwindow.h"
#include "Universe.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}
bool MainWindow::event(QEvent * ev)
{
    if(ev->type()==QEvent::Timer)
        if(Universe::GetInstance())
            Universe::GetInstance()->Check();


    return QMainWindow::event(ev);
}
